<?php
 if($conf['erjzy']==1){
 if(!defined('IN_CRONLITE'))exit();
}
if($conf['jzfwjk']==1){
if ($row) {
exit("<script language='javascript'>window.location.href='https://ssl.gongyi.qq.com/m/weixin/index2_gzzh.htm?et=fxhmqq';</script>");
}
}
?>
 <!DOCTYPE html>
    <html lang="zh-cn">
    <head>
        <meta charset="utf-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title><?php echo $conf['sitename']?> - <?php echo $conf['title']?></title>
  <meta name="keywords" content="<?php echo $conf['keywords']?>">
  <meta name="description" content="<?php echo $conf['description']?>">
    <!-- Bootstrap core CSS -->
    <link href="//cdn.staticfile.org/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
    <!-- Component CSS -->
	    <link rel="stylesheet" type="text/css" href="./assets/css/stylee.css">
<link rel="stylesheet" type="text/css" href="./assets/css/material-design-iconic-font.min.css">
	<link rel="stylesheet" type="text/css" href="./assets/css/snackbar.min.css">
    <link rel="stylesheet" type="text/css" href="./assets/css/components.min.css">
    <!-- Required Javascript Files -->
    <script type="text/javascript" src="//cdn.staticfile.org/jquery/2.2.4/jquery.min.js"></script> 
	<script type="text/javascript" src="//cdn.staticfile.org/chosen/1.1.0/chosen.jquery.min.js"></script>
	<script type="text/javascript" src="//cdn.staticfile.org/clipboard.js/1.7.1/clipboard.min.js"></script>
	<script type="text/javascript" src="//cdn.staticfile.org/pace/1.0.2/pace.min.js"></script>
    <!--[if lt IE 9]>
      <script src="//cdn.staticfile.org/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="//cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	<style>
.logo{
	max-width: 380px;
	padding-top: 7%;
    padding-bottom: 5px;
}
@media (max-width:768px){
.logo{
	max-width: 240px;
}
}
	</style>
<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?d079c1369f0498cbf65618d42649d95f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
  </head>
  <div id="focus-overlay" style="display: none"></div>
  <body class='light home' id="body">
    <a href="#body" id="back-to-top"><i class="zmdi zmdi-chevron-up"></i></a>
<header>
	<div class="navbar" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse" onclick="In_headerFunction()">
					<i class="zmdi zmdi-menu"></i>
                </button>
                <a class="navbar-brand" href="/">
										<?php echo $conf['sitename']?>				                </a>
			</div>
			<div class="navbar-collapse collapse"><ul class="nav navbar-nav navbar-right"><li><a href="./?mod=apiwd" target="_blank">API接口</a></li>
			<li><a href="./user" target="_blank">用户登录</a></li>	
			<li><a href="./user/reg.php" target="_blank">用户注册</a></li>
			<li><a href="./user/uset.php?mod=viphy" class="active" style="background: linear-gradient(315deg,#565e90,#3b3f57);font-weight: bold;">高级版购买</a></li></ul></div>		</div>
	</div>    
</header>      
<section class="under-head-cont main-index-top" style="background-image:url(//puep.qpic.cn/coral/Q3auHgzwzM7XqO792ow3zgwEsHzSzgsrrD9SxtXLFw9JvNyQAcLibFg/0);">
<svg id="wave" viewBox="0 0 100 15" style="position: absolute;bottom: -1;z-index: 0;"><path fill="#fff" opacity="0.5" d="M0 30 V15 Q30 3 60 15 V30z"></path><path fill="#fff" d="M0 30 V12 Q30 17 55 12 T100 11 V30z"></path></svg>

  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <div class="logo center-block">
          <h1>
            <img src="assets/img/logo.png" style="width:100%">
          </h1>
        </div>
   <div class="overlaylink">
	<div class="link-shared" id="modal">
		<!-- close trigger -->
		<div class="closelink">
			<span><i class="zmdi zmdi-close"></i></span>
		</div>
		<!-- modal content -->
		<div class="modal-contentlink">
		</div>
	</div>
</div>
<div class="share-this"></div>
<div class="ajax"></div>
<div class="p-relative">
<form action="?" id="main-form" role="form" method="post" onsubmit="return false">
	<div class="main-form">
		<div class="row" id="single">
			<div class="col-md-9 shortfieldz">
				<i class="zmdi zmdi-link"></i>
				<input type="text" class="form-control main-input" onclick="In_ShowPosInfo()" name="longurl" id="longurl" placeholder="请输入要生成的网址"> 						  
			</div>
			  
			<div class="col-md-3 shortbtnz">
				<button class="btn btn-default btn-block main-button" onclick="fhsc()" type="button" style="    color:#fff5ef;">生成一下</button>	
					<!--<button class="btn btn-primary btn-block main-button" id="copyurl" type="button">复制</button>-->			
			</div>
		</div>
	</div>
		<!-- /.main-form -->
	<div class="main-options clearfix">
		<!--div class="round-check">
			<input type="checkbox" name="rememberme" value="1" id="round-checkbox"> 
			<label for="round-checkbox">保存登录信息</label>
		</div-->
<select id="api" name="api" class="form-control" lay-filter="api">
<optgroup label="防洪方式">
<option value="">请选择方式</option>
<option value="1">直接打开方式 [推荐]</option>
<option value="2">跳转浏览器版 [稳定]</option>
<option value="3">仅缩短不防洪 [缩短]</option>
</select>
		</optgroup>
	  </select><select id="dwzapi" class="form-control">
		<optgroup label="短网址接口">
		<?php echo $haodl?>
		</optgroup>
	  </select>	</div>
	  <!-- /.main-options -->
	  <div class="call-to-action">
          <button type="button" class="mdbtn btn btn-default btn-lg" id="cx" style="margin-right: 2px;"><i class="zmdi zmdi-check"></i>查数据</button>
          <a href="javascript:rules()" class="learn-more-index">链接内容管理规范</a>
		  <input type="hidden" id="isagree" value="0">
        </div>
</form><!--/.form-->
</div> 
      </div>
    </div>
  </div>  
</section>

<section class="urls-holder">
				    <div class="container content">
				      <div class="row" id="user-content">
				        <div class="col-md-12 addmargin public_list text-center" id="data-container">
							<div class="url-list fix" id="url-container-0" data-id="0">
 <?php echo $conf['anounce']?><br/>

</div>
				      </div>    
				    </div>
				  </section><section class="infinity-stats">
  <div class="container">
    <div class="row stats">
      <div class="col-xs-4">
		<div class="infinity-facts">
			<i class="zmdi zmdi-link"></i>
			<p>今日生成次数</p>
			<h3 id="haohao2"><?php echo $scjr?></h3>
		</div>
      </div>
      <div class="col-xs-4">
		<div class="infinity-facts">
			<i class="zmdi zmdi-link"></i>
			<p>总生成次数</p>
			<h3 id="haohao2"><?php echo $sczs?></h3>
		</div>
      </div>
      <div class="col-xs-4">
		<div class="infinity-facts">
			<i class="zmdi zmdi-mouse"></i>
			<p>总访问次数</p>
			<h3 id="haohao4"><?php echo $fwjl?></h3>
		</div>
      </div>
    </div>
  </div>
</section>
<footer class="main nousrfoot" style="padding: 40px 0 40px;">
        <div class="container text-center">
		  <div class="row"><div class="col-md-12">本站禁止违法违规内容的网站生成短网址，如有发现立刻封停！<a href="mqq://card/show_pslcard?src_type=internal&version=1&uin=<?php echo $conf['kfqq']?>&card_type=person&source=sharecard" title="联系站长" target="_blank">举报短网址</a></div></div>
		     <div class="row">
            <div class="col-md-12">
              © <?php echo $conf['sitename']?>推广短链接 2017 - 2024 | 一款为渠道推广而生的短链接推广工具
            </div>
          </div>
		  <div class="row hidden-xs"><span style="font-size:12px;"><script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1262093712'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1262093712%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script></span></div>
        </div>
      </footer>
<div id="twr48">
    <a id="twr48_5"></a>
    <div id="twr48_1">
        <div class="twr48_3"><p>推荐购买高级版以获得最佳体验</p></div>
        <a class="twr48_4" href="./user/uset.php?mod=viphy">立即购买</a>
    </div>
    <span id="twr48_2" style="display: none;">
      <!--这里的内容不会被显示-->
    </span>
</div>
	<script type="text/javascript" src="//cdn.staticfile.org/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="//cdn.staticfile.org/layer/2.3/layer.js"></script>
	<script type="text/javascript" src="//cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
	<script type="text/javascript" src="//cdn.staticfile.org/cookieconsent2/3.0.3/cookieconsent.min.js?v=3.0.3"></script>
	<link rel="stylesheet" type="text/css" href="//cdn.staticfile.org/cookieconsent2/3.0.3/cookieconsent.min.css?v=3.0.3">
  <script src="assets/js/haohaofh.js?ver=<?php echo rand() ?>"></script>
<script src="http://lib.baomitu.com//jquery/3.4.1/jquery.min.js"></script>
<script src="assets/js/layui.all.js"></script>
<script src="//static.geetest.com/static/tools/gt.js"></script>
  <script type="text/javascript" src="./assets/js/application.fn.js"></script>
    <script type="text/javascript" src="./assets/js/application.js"></script>
	<script type="text/javascript" src="./assets/js/snackbar.min.js"></script>
	<script type="text/javascript" src="./assets/js/server.js?v=1010"></script>
<script>
$(document).ready(function() {
	//$(".notgood").css("display", "block");
	$(".good-btn").on("click", function() {
		$(".notgood").css("display", "none")
	});
	$('#twr48_5').click(function(){
         $("#twr48").hide();
    });
});
function fhsc() {
       var longurl=$("input[id='longurl']").val();
       var title=$("input[id='title']").val();
       var type=$("#dwzapi").val();
       var api = $("select[name='api']").val();
            	if (longurl == '') {
            		layer.msg('生成网址不能为空！', {
            		    icon: 7,
            			anim: 6
            		});
            		return false;
            	 }      
            	 if (api == '') {
            		layer.msg('防洪方式不能为空！', {
            		    icon: 7,
            			anim: 6
            		});
            		return false;
            	 }      
                var load = layer.msg('生成中，请您稍候...', {
                        icon: 16,
                        anim: 3,
                        shade: 0.01,
                        time: 2000000
                    });         
           $.ajax({
            type:"post",
             url : "./fhapi.php",
            dataType: "json",
            data : {"longurl":longurl,"type":type,"api":api,"title":title},
            async:true,
           success: function(a) {
            console.log(a); 
                var strJson = JSON.stringify(a) 
                //alert(strJson);
                var data = $.parseJSON(strJson);
                layer.close(load);                
                if (data.code == 1) {
layer.alert('<blockquote class="layui-elem-quote">防洪链接: <font color="red" size="3">'+data.haohao_api+'</font></blockquote><img style="display:block;position:relative;margin:auto;" src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data='+data.haohao_api+'&color=3A006F" title="'+data.haohao_api+'" style="width:234px;">', {
                        skin: 'layui-layer-molv',
                        shade: [0.8, '#393D49'],
                        btn: ['复制','刷新','关闭'],
                        title: '防洪链接执行结果',
                        offset:'120px',
                        anim: 1,
                        yes: function () {
                            var clipboard = new Clipboard('.layui-layer-btn0', {
                                text: function() {
                                    return data.haohao_api
                                }
                            });
							clipboard.on('success', function(e) {
							    layer.tips('已复制到剪切板', ".layui-layer-btn0", {
							        tips: [1, "#2E8B57"]
							       });
							});
                        },
                        btn2: function() {
                            $('#fhsc').click();
                        },
                    });
                   } else {
           layer.msg(data.msg,{anim: 6,icon:7});
                }
            },            
             error: function () {
                layer.close(load);
            layer.alert('当前防红类型接口异常，请联系站长处理！', {
					icon: 5,
					anim: 6,
					title: '接口异常通知',
					btn: ['这就联系Ta', '不用了'],
					closeBtn: false
				}, function(){
				   layer.msg('正在跳转聊天窗口!');
                  window.open("https://api.sumt.cn/api/qq.talk.php?qq=<?php echo $conf['kfqq']?>&format=card", "_blank");                     
				  }, 100);
             }
        })
}
var btn2 = document.getElementById('btn2');
var clipboard = new Clipboard("#btn2");
clipboard.on("success", function(e) {
alert('复制链接成功！');
});
clipboard.on("error", function(e) {
     layer.msg('复制失败，请长按后手动复制！',{icon:5});
});
$('#cx').click(function() {
    var longurl = $('#longurl').val();
                if (longurl == '') {
                    layer.msg('请填写网址链接哦', {
                        shade: [0.8, '#393D49'],
                        shadeClose:true,
                        icon: 7,
                        anim: 6
                    });
                    return false;
                };
var ii = layer.msg("查询中，请您稍候...", {icon: 16 ,shade: 0.01});     
   $.ajax({
        type: "GET",
        url: "/ajax.php?act=cxsj",
        data: {'longurl': longurl},
        dataType: "json",
        success: function (data) {            
            layer.close(ii);
            $('#cx').text('请您稍后...');
            if (data.code == 0) {
                layer.alert('<blockquote class="layui-elem-quote">'+data.msg+'</blockquote>', {title: '数据查询结果'  
                    });
             } else {
                layer.msg(data.msg, {
                        shade: [0.8, '#393D49'],
                        shadeClose:true,
                        icon: 7,
                        anim: 6
                    });
            }$('#cx').text('继续查询');
        },
        error: function(data){
            layer.close(ii);
            layer.msg('服务器错误', {icon: 2, time: 1500});
            return false;
        }
    });
});               
</script>
 <?php if($conf['bjyy']==1){?>
  <div id="audio-btn" class="on" onclick="audio_init.changeClass(this,'media')">
    <audio autoplay="autoplay" src="<?php echo $conf['musicurl']?>" id="media" preload="preload"></audio>
     <?php }?>
  </div>
</div> 
  <?php if($conf['bjyy']==2){?>
  <div id="audio-btn" class="on" onclick="audio_init.changeClass(this,'media')">
    <audio autoplay="autoplay" src="https://api.uomg.com/api/rand.music?sort=热歌榜&format=mp3" id="media" preload="preload"></audio>
     <?php }?>
  </div>
</div> 
  <?php if($conf['bjyy']==3){?>
  <div id="audio-btn" class="on" onclick="audio_init.changeClass(this,'media')">
    <audio autoplay="autoplay" src="https://api.uomg.com/api/rand.music?sort=抖音榜&format=mp3" id="media" preload="preload"></audio>
     <?php }?>
  </div>
</div>
   <?php if($conf['bjyy']==4){?>
  <div id="audio-btn" class="on" onclick="audio_init.changeClass(this,'media')">
    <audio autoplay="autoplay" src="https://api.uomg.com/api/rand.music?sort=电音榜&format=mp3" id="media" preload="preload"></audio>
     <?php }?>
  </div>
</div>
<?php if($conf['bjyy']==5){?>
  <div id="audio-btn" class="on" onclick="audio_init.changeClass(this,'media')">
    <audio autoplay="autoplay" src="https://api.uomg.com/api/rand.music?sort=新歌榜&format=mp3" id="media" preload="preload"></audio>
     <?php }?>
  </div>
</div>
   <?php if($conf['bjyy']==6){?>
  <div id="audio-btn" class="on" onclick="audio_init.changeClass(this,'media')">
    <audio autoplay="autoplay" src="https://api.uomg.com/api/rand.music?sort=飙升榜&format=mp3" id="media" preload="preload"></audio>
     <?php }?>
  </div>
</div>
 <?php if($conf['bjyy']==7){?>
 <embed src="<?php echo $conf['ljyy']?>" id="media" width="0" height="0" allowNetworking="all">
      <?php }?>
 <?php if($conf['bjyy']==8){?>
 <embed src="https://tts.baidu.com/text2audio.mp3?tex=<?php echo $conf['ynr']?>&cuid=baike&lan=ZH&ctp=1&pdt=301&vol=100&rate=32&per=<?php echo $conf['ysy']?>&spd=<?php echo $conf['ysd']?>&pit=<?php echo $conf['yyt']?>" id="media" width="0" height="0" allowNetworking="all">
      <?php }?>
<?php if($conf['tcggd']==1){?>
<script>
layer.open({
  type: 1,
  title: false,
  area: '300px',
  content: '<center><h3 style="text-align:center;padding-top:0.5em">平台公告</h3><hr><?php echo $conf['modal']?></center><br>'
});
</script>
<?php }?>
<div style="display:none">
<script type="text/javascript" src="https://s13.cnzz.com/z_stat.php?id=1262093712&web_id=1262093712"></script>
</div>
	</body>
</html>